package com.jxl.springboot.game.mapper;

import com.jxl.springboot.game.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户
 *
 * @author 江雪林
 * @create 2021-03-29
 */
@Mapper
public interface UserMapper {
    User login(@Param("username") String username, @Param("password") String password);
    int register(User user);
    int findCountByUserName(@Param("username") String username);
    String findRoleByUid(@Param("id")Integer id);
}
